<?php

namespace App\Modules\Post\Http\Resources;

use Illuminate\Http\Resources\Json\Resource;

class PostResource extends Resource
{
    /**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request
     * @return array
     */
    public function toArray($request)
    {
        return parent::toArray($request);
	/*
	return [
		'id' => $this->id,
		'user' => UserResource::collection($this->whenLoaded('user')), 
		'created_at' => $this->created_at,
		'updated_at' => $this->updated_at,
        ];*/
    }
}
